<template>
  <div>
    <el-form class="viewForm" label-width="80px">
      <el-col :span="24">
        <el-form-item label="门头">
          <img alt="" :src="viewModel.logo" style="width: auto;height: 200px;" />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="商家名称">
          <div v-html="viewModel.name">></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="所属分类">
          <div v-html="viewModel.shopCatalogName">></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="排序号">
          <div v-html="viewModel.sortNum">></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="老板">
          <div v-html="viewModel.bossName">></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="地址">
          <div v-html="viewModel.address">></div>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="客服电话">
          <div v-html="viewModel.tel">></div>
        </el-form-item>
      </el-col>
      <el-col :span="24">
        <el-form-item label="位置信息">
          <qqmap zoom="18" :lat="viewModel.lat" :lng="viewModel.lng"></qqmap>
        </el-form-item>
      </el-col>


    </el-form>
  </div>
</template>

<script>
  import common from "@/mixins/common.js";
  import qqmap from "@/components/qqmap.vue";

  export default {
    mixins: [common],
    components: {qqmap},
    data() {
      return {
        viewModel: {},
        activeIndex: "1",
      };
    },
    mounted() {
      var id = this.$route.query.id;
      var self = this;
      var data = {};
      data.id = id;

      this.postData("/tenantRest/shop/view.htm", data, function (res) {
        if (res.code == 0) {
          self.viewModel = res;

        }
      });
    },
  };
</script>

<style>
</style>